.class public Lrexsee/core/application/RexseeApplication;
.super Ljava/lang/Object;
.source "RexseeApplication.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field public static final DATABASE_APPLICATION:Ljava/lang/String; = "application.db"

.field private static final DEFAULT_ENCODING:Ljava/lang/String; = "utf-8"

.field private static final DEFAULT_TIMEOUT:I = 0x1e

.field public static final EXCEPTION_PREFIX:Ljava/lang/String; = "[Exception]"

.field private static final INTERFACE_NAME:Ljava/lang/String; = "Application"

.field private static final MAX_TIMEOUT:I = 0x78

.field private static final MIN_TIMEOUT:I = 0x5

.field public static final TABLE_CACHE:Ljava/lang/String; = "cache"

.field public static final TABLE_ENCODING:Ljava/lang/String; = "encoding"

.field public static final TABLE_HOME:Ljava/lang/String; = "homepage"

.field public static final TABLE_RUNTIMES:Ljava/lang/String; = "runtimes"

.field public static final TABLE_TIMEOUT:Ljava/lang/String; = "timeout"

.field public static final TABLE_USER_AGENT:Ljava/lang/String; = "userAgent"


# instance fields
.field public final country:Ljava/lang/String;

.field public final icon:Landroid/graphics/drawable/Drawable;

.field public final label:Ljava/lang/String;

.field public final language:Ljava/lang/String;

.field private final mContext:Landroid/content/Context;

.field public final resources:Lrexsee/core/application/Resource;

.field public final screenDensity:F

.field public final screenHeight:I

.field public final screenWidth:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 9
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 82
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 83
    iput-object p1, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    .line 84
    new-instance v6, Lrexsee/core/application/Resource;

    iget-object v7, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-direct {v6, v7}, Lrexsee/core/application/Resource;-><init>(Landroid/content/Context;)V

    iput-object v6, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    .line 88
    :try_start_0
    iget-object v6, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v6}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v6

    iget-object v7, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v7}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v7

    const/16 v8, 0x80

    invoke-virtual {v6, v7, v8}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    .line 92
    .local v0, "appInfo":Landroid/content/pm/ApplicationInfo;
    :goto_0
    iget-object v6, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v6}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v4

    .line 93
    .local v4, "packageManager":Landroid/content/pm/PackageManager;
    if-nez v0, :cond_0

    new-instance v6, Landroid/graphics/drawable/ColorDrawable;

    const/high16 v7, -0x1000000

    invoke-direct {v6, v7}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    :goto_1
    iput-object v6, p0, Lrexsee/core/application/RexseeApplication;->icon:Landroid/graphics/drawable/Drawable;

    .line 94
    if-nez v0, :cond_1

    iget-object v6, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v6, v6, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    :goto_2
    iput-object v6, p0, Lrexsee/core/application/RexseeApplication;->label:Ljava/lang/String;

    .line 96
    iget-object v6, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    .line 97
    .local v5, "r":Landroid/content/res/Resources;
    invoke-virtual {v5}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v6

    iget-object v3, v6, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    .line 99
    .local v3, "locale":Ljava/util/Locale;
    invoke-virtual {v3}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lrexsee/core/application/RexseeApplication;->language:Ljava/lang/String;

    .line 100
    invoke-virtual {v3}, Ljava/util/Locale;->getCountry()Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lrexsee/core/application/RexseeApplication;->country:Ljava/lang/String;

    .line 102
    invoke-virtual {v5}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    .line 103
    .local v1, "displayMetrics":Landroid/util/DisplayMetrics;
    iget v6, v1, Landroid/util/DisplayMetrics;->density:F

    iput v6, p0, Lrexsee/core/application/RexseeApplication;->screenDensity:F

    .line 104
    iget v6, v1, Landroid/util/DisplayMetrics;->widthPixels:I

    iput v6, p0, Lrexsee/core/application/RexseeApplication;->screenWidth:I

    .line 105
    iget v6, v1, Landroid/util/DisplayMetrics;->heightPixels:I

    iput v6, p0, Lrexsee/core/application/RexseeApplication;->screenHeight:I

    .line 107
    invoke-virtual {p0}, Lrexsee/core/application/RexseeApplication;->addRunTimes()V

    .line 108
    return-void

    .line 89
    .end local v0    # "appInfo":Landroid/content/pm/ApplicationInfo;
    .end local v1    # "displayMetrics":Landroid/util/DisplayMetrics;
    .end local v3    # "locale":Ljava/util/Locale;
    .end local v4    # "packageManager":Landroid/content/pm/PackageManager;
    .end local v5    # "r":Landroid/content/res/Resources;
    :catch_0
    move-exception v6

    move-object v2, v6

    .line 90
    .local v2, "e":Landroid/content/pm/PackageManager$NameNotFoundException;
    const/4 v0, 0x0

    .restart local v0    # "appInfo":Landroid/content/pm/ApplicationInfo;
    goto :goto_0

    .line 93
    .end local v2    # "e":Landroid/content/pm/PackageManager$NameNotFoundException;
    .restart local v4    # "packageManager":Landroid/content/pm/PackageManager;
    :cond_0
    invoke-virtual {v4, v0}, Landroid/content/pm/PackageManager;->getApplicationIcon(Landroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    goto :goto_1

    .line 94
    :cond_1
    invoke-virtual {v4, v0}, Landroid/content/pm/PackageManager;->getApplicationLabel(Landroid/content/pm/ApplicationInfo;)Ljava/lang/CharSequence;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    goto :goto_2
.end method

.method static synthetic access$0(Lrexsee/core/application/RexseeApplication;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 78
    iget-object v0, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method public static getDefaultEncoding(Landroid/content/Context;)Ljava/lang/String;
    .locals 8
    .param p0, "context"    # Landroid/content/Context;

    .prologue
    const-string v7, "utf-8"

    .line 138
    const/4 v1, 0x0

    .line 140
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    const-string v4, "application.db"

    const/4 v5, 0x0

    const/4 v6, 0x0

    invoke-virtual {p0, v4, v5, v6}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v1

    .line 143
    :goto_0
    if-nez v1, :cond_0

    const-string v4, "utf-8"

    move-object v4, v7

    .line 163
    :goto_1
    return-object v4

    .line 145
    :cond_0
    :try_start_1
    const-string v4, "CREATE TABLE if not exists encoding (encoding TEXT);"

    invoke-virtual {v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 146
    const-string v4, "SELECT * from encoding;"

    const/4 v5, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 147
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_1

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v4

    if-nez v4, :cond_2

    .line 149
    :cond_1
    :try_start_2
    invoke-interface {v0}, Landroid/database/Cursor;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 152
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    .line 153
    const-string v4, "utf-8"

    move-object v4, v7

    goto :goto_1

    .line 155
    :cond_2
    :try_start_4
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 156
    const/4 v4, 0x0

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 157
    .local v3, "rtn":Ljava/lang/String;
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 158
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    move-object v4, v3

    .line 159
    goto :goto_1

    .line 161
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v3    # "rtn":Ljava/lang/String;
    :catch_0
    move-exception v4

    move-object v2, v4

    .line 162
    .local v2, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 163
    const-string v4, "utf-8"

    move-object v4, v7

    goto :goto_1

    .line 150
    .end local v2    # "e":Ljava/lang/Exception;
    .restart local v0    # "cursor":Landroid/database/Cursor;
    :catch_1
    move-exception v4

    goto :goto_2

    .line 141
    .end local v0    # "cursor":Landroid/database/Cursor;
    :catch_2
    move-exception v4

    goto :goto_0
.end method

.method public static getUserAgent(Landroid/content/Context;)Ljava/lang/String;
    .locals 8
    .param p0, "context"    # Landroid/content/Context;

    .prologue
    const-string v7, ""

    .line 122
    :try_start_0
    const-string v4, "application.db"

    const/4 v5, 0x0

    const/4 v6, 0x0

    invoke-virtual {p0, v4, v5, v6}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    .line 123
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    const-string v4, "CREATE TABLE if not exists userAgent (agent TEXT);"

    invoke-virtual {v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 124
    const-string v4, "SELECT * from userAgent;"

    const/4 v5, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 125
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_0

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v4

    if-nez v4, :cond_1

    .line 126
    :cond_0
    const-string v4, ""

    move-object v4, v7

    .line 134
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v1    # "db":Landroid/database/sqlite/SQLiteDatabase;
    :goto_0
    return-object v4

    .line 128
    .restart local v0    # "cursor":Landroid/database/Cursor;
    .restart local v1    # "db":Landroid/database/sqlite/SQLiteDatabase;
    :cond_1
    :try_start_1
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 129
    const/4 v4, 0x0

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 130
    .local v3, "rtn":Ljava/lang/String;
    invoke-interface {v0}, Landroid/database/Cursor;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-object v4, v3

    .line 131
    goto :goto_0

    .line 133
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v1    # "db":Landroid/database/sqlite/SQLiteDatabase;
    .end local v3    # "rtn":Ljava/lang/String;
    :catch_0
    move-exception v4

    move-object v2, v4

    .line 134
    .local v2, "e":Ljava/lang/Exception;
    const-string v4, ""

    move-object v4, v7

    goto :goto_0
.end method

.method public static setUserAgent(Landroid/content/Context;Ljava/lang/String;)V
    .locals 4
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "agent"    # Ljava/lang/String;

    .prologue
    .line 112
    :try_start_0
    const-string v1, "application.db"

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {p0, v1, v2, v3}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 113
    .local v0, "db":Landroid/database/sqlite/SQLiteDatabase;
    const-string v1, "CREATE TABLE if not exists userAgent (agent TEXT);"

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 114
    const-string v1, "DELETE FROM userAgent;"

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 115
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "INSERT INTO userAgent VALUES (\'"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\');"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 116
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 119
    .end local v0    # "db":Landroid/database/sqlite/SQLiteDatabase;
    :goto_0
    return-void

    .line 117
    :catch_0
    move-exception v1

    goto :goto_0
.end method


# virtual methods
.method public addRunTimes()V
    .locals 7

    .prologue
    .line 341
    const/4 v2, 0x0

    .line 343
    .local v2, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    iget-object v3, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v4, "application.db"

    const/4 v5, 0x0

    const/4 v6, 0x0

    invoke-virtual {v3, v4, v5, v6}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v2

    .line 346
    :goto_0
    if-nez v2, :cond_0

    .line 364
    :goto_1
    return-void

    .line 348
    :cond_0
    :try_start_1
    const-string v3, "CREATE TABLE if not exists runtimes (times int);"

    invoke-virtual {v2, v3}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 349
    const-string v3, "SELECT * from runtimes;"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    .line 351
    .local v1, "cursor":Landroid/database/Cursor;
    if-eqz v1, :cond_1

    invoke-interface {v1}, Landroid/database/Cursor;->getCount()I

    move-result v3

    if-nez v3, :cond_2

    .line 352
    :cond_1
    const/4 v0, 0x0

    .line 357
    .local v0, "current":I
    :goto_2
    add-int/lit8 v0, v0, 0x1

    .line 358
    const-string v3, "DELETE FROM runtimes;"

    invoke-virtual {v2, v3}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 359
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "INSERT INTO runtimes VALUES ("

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ");"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 360
    invoke-interface {v1}, Landroid/database/Cursor;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 363
    .end local v0    # "current":I
    .end local v1    # "cursor":Landroid/database/Cursor;
    :goto_3
    invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    goto :goto_1

    .line 354
    .restart local v1    # "cursor":Landroid/database/Cursor;
    :cond_2
    :try_start_2
    invoke-interface {v1}, Landroid/database/Cursor;->moveToFirst()Z

    .line 355
    const/4 v3, 0x0

    invoke-interface {v1, v3}, Landroid/database/Cursor;->getInt(I)I
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    move-result v0

    .restart local v0    # "current":I
    goto :goto_2

    .line 361
    .end local v0    # "current":I
    .end local v1    # "cursor":Landroid/database/Cursor;
    :catch_0
    move-exception v3

    goto :goto_3

    .line 344
    :catch_1
    move-exception v3

    goto :goto_0
.end method

.method public alert(Ljava/lang/String;)V
    .locals 1
    .param p1, "message"    # Ljava/lang/String;

    .prologue
    .line 209
    sget-object v0, Lrexsee/core/lang/RexseeLanguage;->TITLE_ALERT:Ljava/lang/String;

    invoke-virtual {p0, v0, p1}, Lrexsee/core/application/RexseeApplication;->alert(Ljava/lang/String;Ljava/lang/String;)V

    .line 210
    return-void
.end method

.method public alert(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .param p1, "title"    # Ljava/lang/String;
    .param p2, "message"    # Ljava/lang/String;

    .prologue
    .line 215
    iget-object v0, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/core/application/RexseeApplication$2;

    invoke-direct {v1, p0, p1, p2}, Lrexsee/core/application/RexseeApplication$2;-><init>(Lrexsee/core/application/RexseeApplication;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 232
    return-void
.end method

.method public askForExit(Ljava/lang/String;Ljava/lang/String;)V
    .locals 7
    .param p1, "title"    # Ljava/lang/String;
    .param p2, "message"    # Ljava/lang/String;

    .prologue
    const/4 v4, 0x0

    .line 298
    sget-object v3, Lrexsee/core/lang/RexseeLanguage;->ACTION_QUIT:Ljava/lang/String;

    new-instance v5, Lrexsee/core/application/RexseeApplication$9;

    invoke-direct {v5, p0}, Lrexsee/core/application/RexseeApplication$9;-><init>(Lrexsee/core/application/RexseeApplication;)V

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v6, v4

    invoke-virtual/range {v0 .. v6}, Lrexsee/core/application/RexseeApplication;->confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;Ljava/lang/Runnable;)V

    .line 304
    return-void
.end method

.method public askForExitOrRestart(Ljava/lang/String;Ljava/lang/String;)V
    .locals 7
    .param p1, "title"    # Ljava/lang/String;
    .param p2, "message"    # Ljava/lang/String;

    .prologue
    .line 285
    sget-object v3, Lrexsee/core/lang/RexseeLanguage;->ACTION_QUIT:Ljava/lang/String;

    sget-object v4, Lrexsee/core/lang/RexseeLanguage;->ACTION_RESTART:Ljava/lang/String;

    new-instance v5, Lrexsee/core/application/RexseeApplication$7;

    invoke-direct {v5, p0}, Lrexsee/core/application/RexseeApplication$7;-><init>(Lrexsee/core/application/RexseeApplication;)V

    .line 290
    new-instance v6, Lrexsee/core/application/RexseeApplication$8;

    invoke-direct {v6, p0}, Lrexsee/core/application/RexseeApplication$8;-><init>(Lrexsee/core/application/RexseeApplication;)V

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    .line 285
    invoke-virtual/range {v0 .. v6}, Lrexsee/core/application/RexseeApplication;->confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;Ljava/lang/Runnable;)V

    .line 296
    return-void
.end method

.method public confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;)V
    .locals 8
    .param p1, "title"    # Ljava/lang/String;
    .param p2, "message"    # Ljava/lang/String;
    .param p3, "runnable"    # Ljava/lang/Runnable;

    .prologue
    .line 168
    iget-object v0, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    .line 169
    .local v7, "r":Landroid/content/res/Resources;
    const v0, 0x104000a

    invoke-virtual {v7, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/high16 v0, 0x1040000

    invoke-virtual {v7, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v4

    const/4 v6, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v5, p3

    invoke-virtual/range {v0 .. v6}, Lrexsee/core/application/RexseeApplication;->confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;Ljava/lang/Runnable;)V

    .line 170
    return-void
.end method

.method public confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;Ljava/lang/Runnable;)V
    .locals 10
    .param p1, "title"    # Ljava/lang/String;
    .param p2, "message"    # Ljava/lang/String;
    .param p3, "confirmText"    # Ljava/lang/String;
    .param p4, "cancelText"    # Ljava/lang/String;
    .param p5, "confirmRunnable"    # Ljava/lang/Runnable;
    .param p6, "cancelRunnable"    # Ljava/lang/Runnable;

    .prologue
    .line 172
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    move-object v0, v1

    check-cast v0, Landroid/app/Activity;

    move-object v9, v0

    new-instance v1, Lrexsee/core/application/RexseeApplication$1;

    move-object v2, p0

    move-object v3, p1

    move-object v4, p2

    move-object v5, p3

    move-object v6, p4

    move-object v7, p5

    move-object/from16 v8, p6

    invoke-direct/range {v1 .. v8}, Lrexsee/core/application/RexseeApplication$1;-><init>(Lrexsee/core/application/RexseeApplication;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;Ljava/lang/Runnable;)V

    invoke-virtual {v9, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 207
    return-void
.end method

.method public confirmExit()V
    .locals 3

    .prologue
    .line 239
    sget-object v0, Lrexsee/core/lang/RexseeLanguage;->TITLE_CONFIRM:Ljava/lang/String;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->CONFIRM_QUIT:Ljava/lang/String;

    new-instance v2, Lrexsee/core/application/RexseeApplication$3;

    invoke-direct {v2, p0}, Lrexsee/core/application/RexseeApplication$3;-><init>(Lrexsee/core/application/RexseeApplication;)V

    invoke-virtual {p0, v0, v1, v2}, Lrexsee/core/application/RexseeApplication;->confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 245
    return-void
.end method

.method public confirmQuit()V
    .locals 3

    .prologue
    .line 250
    sget-object v0, Lrexsee/core/lang/RexseeLanguage;->TITLE_CONFIRM:Ljava/lang/String;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->CONFIRM_QUIT:Ljava/lang/String;

    new-instance v2, Lrexsee/core/application/RexseeApplication$4;

    invoke-direct {v2, p0}, Lrexsee/core/application/RexseeApplication$4;-><init>(Lrexsee/core/application/RexseeApplication;)V

    invoke-virtual {p0, v0, v1, v2}, Lrexsee/core/application/RexseeApplication;->confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 256
    return-void
.end method

.method public confirmRestart()V
    .locals 3

    .prologue
    .line 264
    sget-object v0, Lrexsee/core/lang/RexseeLanguage;->TITLE_CONFIRM:Ljava/lang/String;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->CONFIRM_RESTART:Ljava/lang/String;

    new-instance v2, Lrexsee/core/application/RexseeApplication$5;

    invoke-direct {v2, p0}, Lrexsee/core/application/RexseeApplication$5;-><init>(Lrexsee/core/application/RexseeApplication;)V

    invoke-virtual {p0, v0, v1, v2}, Lrexsee/core/application/RexseeApplication;->confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 270
    return-void
.end method

.method public confirmUninstall()V
    .locals 3

    .prologue
    .line 276
    sget-object v0, Lrexsee/core/lang/RexseeLanguage;->TITLE_CONFIRM:Ljava/lang/String;

    sget-object v1, Lrexsee/core/lang/RexseeLanguage;->CONFIRM_UNINSTALL:Ljava/lang/String;

    new-instance v2, Lrexsee/core/application/RexseeApplication$6;

    invoke-direct {v2, p0}, Lrexsee/core/application/RexseeApplication$6;-><init>(Lrexsee/core/application/RexseeApplication;)V

    invoke-virtual {p0, v0, v1, v2}, Lrexsee/core/application/RexseeApplication;->confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 282
    return-void
.end method

.method public error(Ljava/lang/String;)V
    .locals 1
    .param p1, "message"    # Ljava/lang/String;

    .prologue
    .line 212
    sget-object v0, Lrexsee/core/lang/RexseeLanguage;->TITLE_ERROR:Ljava/lang/String;

    invoke-virtual {p0, v0, p1}, Lrexsee/core/application/RexseeApplication;->alert(Ljava/lang/String;Ljava/lang/String;)V

    .line 213
    return-void
.end method

.method public exit()V
    .locals 1

    .prologue
    .line 236
    const/4 v0, 0x2

    invoke-static {v0}, Ljava/lang/System;->exit(I)V

    .line 237
    return-void
.end method

.method public getAuthorEmail()Ljava/lang/String;
    .locals 1

    .prologue
    .line 402
    iget-object v0, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v0, v0, Lrexsee/core/application/Resource;->email:Ljava/lang/String;

    return-object v0
.end method

.method public getAuthorName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 399
    iget-object v0, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v0, v0, Lrexsee/core/application/Resource;->author:Ljava/lang/String;

    return-object v0
.end method

.method public getAutoClearCache()Z
    .locals 10

    .prologue
    const/4 v9, 0x0

    const/4 v8, 0x1

    .line 549
    const/4 v1, 0x0

    .line 551
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    iget-object v4, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v5, "application.db"

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v1

    .line 554
    :goto_0
    if-nez v1, :cond_0

    move v4, v8

    .line 574
    :goto_1
    return v4

    .line 556
    :cond_0
    :try_start_1
    const-string v4, "CREATE TABLE if not exists cache (autoclear int);"

    invoke-virtual {v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 557
    const-string v4, "SELECT * from cache;"

    const/4 v5, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 558
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_1

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v4

    if-nez v4, :cond_2

    .line 560
    :cond_1
    :try_start_2
    invoke-interface {v0}, Landroid/database/Cursor;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 563
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    move v4, v8

    .line 564
    goto :goto_1

    .line 566
    :cond_2
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 567
    const/4 v4, 0x0

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getInt(I)I

    move-result v4

    if-nez v4, :cond_3

    move v3, v9

    .line 568
    .local v3, "rtn":Z
    :goto_3
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 569
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    move v4, v3

    .line 570
    goto :goto_1

    .end local v3    # "rtn":Z
    :cond_3
    move v3, v8

    .line 567
    goto :goto_3

    .line 572
    .end local v0    # "cursor":Landroid/database/Cursor;
    :catch_0
    move-exception v4

    move-object v2, v4

    .line 573
    .local v2, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    move v4, v8

    .line 574
    goto :goto_1

    .line 561
    .end local v2    # "e":Ljava/lang/Exception;
    .restart local v0    # "cursor":Landroid/database/Cursor;
    :catch_1
    move-exception v4

    goto :goto_2

    .line 552
    .end local v0    # "cursor":Landroid/database/Cursor;
    :catch_2
    move-exception v4

    goto :goto_0
.end method

.method public getCurrentHome()Ljava/lang/String;
    .locals 3

    .prologue
    .line 468
    invoke-virtual {p0}, Lrexsee/core/application/RexseeApplication;->getDeveloperHome()Ljava/lang/String;

    move-result-object v0

    .line 469
    .local v0, "developerHome":Ljava/lang/String;
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->home:Ljava/lang/String;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->home:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 470
    const-string v1, "file://"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    move-object v1, v0

    .line 473
    :goto_0
    return-object v1

    .line 471
    :cond_0
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->home:Ljava/lang/String;

    goto :goto_0

    :cond_1
    move-object v1, v0

    .line 473
    goto :goto_0
.end method

.method public getDefaultEncoding()Ljava/lang/String;
    .locals 1

    .prologue
    .line 535
    iget-object v0, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-static {v0}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getDeveloperHome()Ljava/lang/String;
    .locals 9

    .prologue
    const-string v8, ":home_setup"

    .line 438
    const/4 v1, 0x0

    .line 440
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    iget-object v4, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v5, "application.db"

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v1

    .line 443
    :goto_0
    if-nez v1, :cond_0

    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v5, v5, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ":home_setup"

    invoke-virtual {v4, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 463
    :goto_1
    return-object v4

    .line 445
    :cond_0
    :try_start_1
    const-string v4, "CREATE TABLE if not exists homepage (url TEXT);"

    invoke-virtual {v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 446
    const-string v4, "SELECT * from homepage;"

    const/4 v5, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 447
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_1

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v4

    if-nez v4, :cond_2

    .line 449
    :cond_1
    :try_start_2
    invoke-interface {v0}, Landroid/database/Cursor;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 452
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 453
    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v5, v5, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ":home_setup"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_1

    .line 455
    :cond_2
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 456
    const/4 v4, 0x0

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 457
    .local v3, "rtn":Ljava/lang/String;
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 458
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    move-object v4, v3

    .line 459
    goto :goto_1

    .line 461
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v3    # "rtn":Ljava/lang/String;
    :catch_0
    move-exception v4

    move-object v2, v4

    .line 462
    .local v2, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 463
    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v5, v5, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ":home_setup"

    invoke-virtual {v4, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_1

    .line 450
    .end local v2    # "e":Ljava/lang/Exception;
    .restart local v0    # "cursor":Landroid/database/Cursor;
    :catch_1
    move-exception v4

    goto :goto_2

    .line 441
    .end local v0    # "cursor":Landroid/database/Cursor;
    :catch_2
    move-exception v4

    goto :goto_0
.end method

.method public getDomailWhiteList()Ljava/lang/String;
    .locals 6

    .prologue
    const-string v5, "\""

    .line 405
    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v2, v2, Lrexsee/core/application/Resource;->domainWhiteList:[Ljava/lang/String;

    if-nez v2, :cond_0

    const-string v2, ""

    .line 410
    :goto_0
    return-object v2

    .line 406
    :cond_0
    const-string v1, ""

    .line 407
    .local v1, "rtn":Ljava/lang/String;
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_1
    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v2, v2, Lrexsee/core/application/Resource;->domainWhiteList:[Ljava/lang/String;

    array-length v2, v2

    if-lt v0, v2, :cond_1

    .line 410
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "["

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "]"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_0

    .line 408
    :cond_1
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    if-nez v0, :cond_2

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "\""

    invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v4, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v4, v4, Lrexsee/core/application/Resource;->domainWhiteList:[Ljava/lang/String;

    aget-object v4, v4, v0

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\""

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    :goto_2
    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 407
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 408
    :cond_2
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, ",\""

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v4, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v4, v4, Lrexsee/core/application/Resource;->domainWhiteList:[Ljava/lang/String;

    aget-object v4, v4, v0

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\""

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_2
.end method

.method public getEditionName()Ljava/lang/String;
    .locals 4

    .prologue
    const-string v3, ""

    .line 327
    iget-object v0, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    const-string v1, "Rexsee"

    const-string v2, ""

    invoke-virtual {v0, v1, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "Activity"

    const-string v2, ""

    invoke-virtual {v0, v1, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getHome()Ljava/lang/String;
    .locals 1

    .prologue
    .line 396
    iget-object v0, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v0, v0, Lrexsee/core/application/Resource;->home:Ljava/lang/String;

    return-object v0
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 45
    iget-object v0, p1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    return-object v0
.end method

.method public getInstalledTime()I
    .locals 6

    .prologue
    .line 333
    :try_start_0
    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    iget-object v3, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v3

    const/16 v4, 0x80

    invoke-virtual {v2, v3, v4}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    .line 337
    .local v0, "appInfo":Landroid/content/pm/ApplicationInfo;
    :goto_0
    if-nez v0, :cond_0

    const/4 v2, -0x1

    :goto_1
    return v2

    .line 334
    .end local v0    # "appInfo":Landroid/content/pm/ApplicationInfo;
    :catch_0
    move-exception v2

    move-object v1, v2

    .line 335
    .local v1, "e":Landroid/content/pm/PackageManager$NameNotFoundException;
    const/4 v0, 0x0

    .restart local v0    # "appInfo":Landroid/content/pm/ApplicationInfo;
    goto :goto_0

    .line 337
    .end local v1    # "e":Landroid/content/pm/PackageManager$NameNotFoundException;
    :cond_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    new-instance v4, Ljava/io/File;

    iget-object v5, v0, Landroid/content/pm/ApplicationInfo;->sourceDir:Ljava/lang/String;

    invoke-direct {v4, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/io/File;->lastModified()J

    move-result-wide v4

    sub-long/2addr v2, v4

    long-to-int v2, v2

    div-int/lit16 v2, v2, 0x3e8

    goto :goto_1
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 41
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "Application"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getLabel()Ljava/lang/String;
    .locals 1

    .prologue
    .line 310
    iget-object v0, p0, Lrexsee/core/application/RexseeApplication;->label:Ljava/lang/String;

    return-object v0
.end method

.method public getName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 307
    iget-object v0, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 2
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 49
    new-instance v0, Lrexsee/core/application/RexseeApplication;

    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lrexsee/core/application/RexseeApplication;-><init>(Landroid/content/Context;)V

    return-object v0
.end method

.method public getRunTimes()I
    .locals 9

    .prologue
    const/4 v8, 0x0

    .line 366
    const/4 v1, 0x0

    .line 368
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    iget-object v4, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v5, "application.db"

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v1

    .line 371
    :goto_0
    if-nez v1, :cond_0

    move v4, v8

    .line 391
    :goto_1
    return v4

    .line 373
    :cond_0
    :try_start_1
    const-string v4, "CREATE TABLE if not exists runtimes (times int);"

    invoke-virtual {v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 374
    const-string v4, "SELECT * from runtimes;"

    const/4 v5, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 375
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_1

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v4

    if-nez v4, :cond_2

    .line 377
    :cond_1
    :try_start_2
    invoke-interface {v0}, Landroid/database/Cursor;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 380
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    move v4, v8

    .line 381
    goto :goto_1

    .line 383
    :cond_2
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 384
    const/4 v4, 0x0

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getInt(I)I

    move-result v3

    .line 385
    .local v3, "rtn":I
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 386
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    move v4, v3

    .line 387
    goto :goto_1

    .line 389
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v3    # "rtn":I
    :catch_0
    move-exception v4

    move-object v2, v4

    .line 390
    .local v2, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    move v4, v8

    .line 391
    goto :goto_1

    .line 378
    .end local v2    # "e":Ljava/lang/Exception;
    .restart local v0    # "cursor":Landroid/database/Cursor;
    :catch_1
    move-exception v4

    goto :goto_2

    .line 369
    .end local v0    # "cursor":Landroid/database/Cursor;
    :catch_2
    move-exception v4

    goto :goto_0
.end method

.method public getTimeout()I
    .locals 9

    .prologue
    const/16 v8, 0x1e

    .line 495
    const/4 v1, 0x0

    .line 497
    .local v1, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    iget-object v4, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v5, "application.db"

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v1

    .line 500
    :goto_0
    if-nez v1, :cond_0

    move v4, v8

    .line 520
    :goto_1
    return v4

    .line 502
    :cond_0
    :try_start_1
    const-string v4, "CREATE TABLE if not exists timeout (seconds int);"

    invoke-virtual {v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 503
    const-string v4, "SELECT * from timeout;"

    const/4 v5, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 504
    .local v0, "cursor":Landroid/database/Cursor;
    if-eqz v0, :cond_1

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v4

    if-nez v4, :cond_2

    .line 506
    :cond_1
    :try_start_2
    invoke-interface {v0}, Landroid/database/Cursor;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 509
    :goto_2
    :try_start_3
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    move v4, v8

    .line 510
    goto :goto_1

    .line 512
    :cond_2
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 513
    const/4 v4, 0x0

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getInt(I)I

    move-result v3

    .line 514
    .local v3, "rtn":I
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 515
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    move v4, v3

    .line 516
    goto :goto_1

    .line 518
    .end local v0    # "cursor":Landroid/database/Cursor;
    .end local v3    # "rtn":I
    :catch_0
    move-exception v4

    move-object v2, v4

    .line 519
    .local v2, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    move v4, v8

    .line 520
    goto :goto_1

    .line 507
    .end local v2    # "e":Ljava/lang/Exception;
    .restart local v0    # "cursor":Landroid/database/Cursor;
    :catch_1
    move-exception v4

    goto :goto_2

    .line 498
    .end local v0    # "cursor":Landroid/database/Cursor;
    :catch_2
    move-exception v4

    goto :goto_0
.end method

.method public getVersionCode()I
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 314
    :try_start_0
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    iget v1, v1, Landroid/content/pm/PackageInfo;->versionCode:I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 316
    :goto_0
    return v1

    .line 315
    :catch_0
    move-exception v1

    move-object v0, v1

    .local v0, "e":Ljava/lang/Exception;
    move v1, v4

    .line 316
    goto :goto_0
.end method

.method public getVersionName()Ljava/lang/String;
    .locals 4

    .prologue
    .line 321
    :try_start_0
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    iget-object v1, v1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 323
    :goto_0
    return-object v1

    .line 322
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 323
    .local v0, "e":Ljava/lang/Exception;
    const-string v1, ""

    goto :goto_0
.end method

.method public quit()V
    .locals 0

    .prologue
    .line 247
    iget-object p0, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    .end local p0    # "this":Lrexsee/core/application/RexseeApplication;
    check-cast p0, Landroid/app/Activity;

    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    .line 248
    return-void
.end method

.method public restart()V
    .locals 7

    .prologue
    .line 258
    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    check-cast v2, Landroid/app/Activity;

    invoke-virtual {v2}, Landroid/app/Activity;->getBaseContext()Landroid/content/Context;

    move-result-object v3

    const/4 v4, 0x0

    new-instance v5, Landroid/content/Intent;

    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    check-cast v2, Landroid/app/Activity;

    invoke-virtual {v2}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    invoke-direct {v5, v2}, Landroid/content/Intent;-><init>(Landroid/content/Intent;)V

    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    check-cast v2, Landroid/app/Activity;

    invoke-virtual {v2}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Intent;->getFlags()I

    move-result v2

    invoke-static {v3, v4, v5, v2}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v1

    .line 259
    .local v1, "pendingIntent":Landroid/app/PendingIntent;
    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v3, "alarm"

    invoke-virtual {v2, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AlarmManager;

    .line 260
    .local v0, "mgr":Landroid/app/AlarmManager;
    const/4 v2, 0x1

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    const-wide/16 v5, 0x3e8

    add-long/2addr v3, v5

    invoke-virtual {v0, v2, v3, v4, v1}, Landroid/app/AlarmManager;->set(IJLandroid/app/PendingIntent;)V

    .line 261
    const/4 v2, 0x2

    invoke-static {v2}, Ljava/lang/System;->exit(I)V

    .line 262
    return-void
.end method

.method public sendShortcutToDesktop()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 579
    invoke-virtual {p0, v0, v0, v0}, Lrexsee/core/application/RexseeApplication;->sendShortcutToDesktop(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 580
    return-void
.end method

.method public sendShortcutToDesktop(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .param p1, "shortcutLable"    # Ljava/lang/String;
    .param p2, "shortcutUrl"    # Ljava/lang/String;

    .prologue
    .line 582
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0, p2}, Lrexsee/core/application/RexseeApplication;->sendShortcutToDesktop(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 583
    return-void
.end method

.method public sendShortcutToDesktop(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 8
    .param p1, "shortcutLable"    # Ljava/lang/String;
    .param p2, "shortcutIconPath"    # Ljava/lang/String;
    .param p3, "shortcutUrl"    # Ljava/lang/String;

    .prologue
    const-string v7, "android.intent.extra.shortcut.NAME"

    const-string v6, "android.intent.extra.shortcut.INTENT"

    const-string v5, ""

    .line 585
    new-instance v1, Landroid/content/Intent;

    const-string v2, "com.android.launcher.action.INSTALL_SHORTCUT"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 586
    .local v1, "intent":Landroid/content/Intent;
    invoke-static {p2}, Lrexsee/core/utilities/Utilities;->getBitmap(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 587
    .local v0, "bitmap":Landroid/graphics/Bitmap;
    if-eqz v0, :cond_0

    .line 588
    const-string v2, "android.intent.extra.shortcut.ICON"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 592
    :goto_0
    if-eqz p1, :cond_1

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 593
    const-string v2, "android.intent.extra.shortcut.NAME"

    invoke-virtual {v1, v7, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 597
    :goto_1
    if-eqz p3, :cond_2

    invoke-virtual {p3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 598
    const-string v2, "android.intent.extra.shortcut.INTENT"

    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-static {v2, p3}, Lrexsee/core/utilities/Utilities;->getStartMeIntent(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v2

    invoke-virtual {v1, v6, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 602
    :goto_2
    const-string v2, "duplicate"

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 603
    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v2, v1}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    .line 604
    return-void

    .line 590
    :cond_0
    const-string v2, "android.intent.extra.shortcut.ICON_RESOURCE"

    iget-object v3, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    iget-object v4, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-static {v4}, Lrexsee/core/application/Resource;->getIconId(Landroid/content/Context;)I

    move-result v4

    invoke-static {v3, v4}, Landroid/content/Intent$ShortcutIconResource;->fromContext(Landroid/content/Context;I)Landroid/content/Intent$ShortcutIconResource;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    goto :goto_0

    .line 595
    :cond_1
    const-string v2, "android.intent.extra.shortcut.NAME"

    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->label:Ljava/lang/String;

    invoke-virtual {v1, v7, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_1

    .line 600
    :cond_2
    const-string v2, "android.intent.extra.shortcut.INTENT"

    iget-object v2, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {p0}, Lrexsee/core/application/RexseeApplication;->getCurrentHome()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lrexsee/core/utilities/Utilities;->getStartMeIntent(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v2

    invoke-virtual {v1, v6, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    goto :goto_2
.end method

.method public setAutoClearCache(Z)V
    .locals 6
    .param p1, "autoClear"    # Z

    .prologue
    const/4 v5, 0x0

    .line 540
    :try_start_0
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v2, "application.db"

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {v1, v2, v3, v4}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 541
    .local v0, "db":Landroid/database/sqlite/SQLiteDatabase;
    const-string v1, "CREATE TABLE if not exists cache (autoclear int);"

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 542
    const-string v1, "DELETE FROM cache;"

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 543
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "INSERT INTO cache VALUES ("

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    if-eqz p1, :cond_0

    const/4 v2, 0x1

    :goto_0
    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ");"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 544
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 547
    .end local v0    # "db":Landroid/database/sqlite/SQLiteDatabase;
    :goto_1
    return-void

    .restart local v0    # "db":Landroid/database/sqlite/SQLiteDatabase;
    :cond_0
    move v2, v5

    .line 543
    goto :goto_0

    .line 545
    .end local v0    # "db":Landroid/database/sqlite/SQLiteDatabase;
    :catch_0
    move-exception v1

    goto :goto_1
.end method

.method public setDefaultEncoding(Ljava/lang/String;)V
    .locals 5
    .param p1, "encoding"    # Ljava/lang/String;

    .prologue
    .line 526
    :try_start_0
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v2, "application.db"

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {v1, v2, v3, v4}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 527
    .local v0, "db":Landroid/database/sqlite/SQLiteDatabase;
    const-string v1, "CREATE TABLE if not exists encoding (encoding TEXT);"

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 528
    const-string v1, "DELETE FROM encoding;"

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 529
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "INSERT INTO encoding VALUES (\'"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\');"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 530
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 533
    .end local v0    # "db":Landroid/database/sqlite/SQLiteDatabase;
    :goto_0
    return-void

    .line 531
    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method public setDeveloperHome(Ljava/lang/String;)V
    .locals 7
    .param p1, "homePage"    # Ljava/lang/String;

    .prologue
    .line 414
    invoke-static {p1}, Lrexsee/core/browser/RexseeUrl;->cleanUrl_(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 415
    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    .line 416
    .local v2, "uri":Landroid/net/Uri;
    invoke-virtual {v2}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v1

    .line 417
    .local v1, "scheme":Ljava/lang/String;
    const-string v3, "http"

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    const-string v3, "https"

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    const-string v3, "file"

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    .line 418
    iget-object v3, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "Invalid Scheme: "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x1

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    .line 436
    :cond_0
    :goto_0
    return-void

    .line 421
    :cond_1
    const/4 v0, 0x0

    .line 423
    .local v0, "db":Landroid/database/sqlite/SQLiteDatabase;
    :try_start_0
    iget-object v3, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v4, "application.db"

    const/4 v5, 0x0

    const/4 v6, 0x0

    invoke-virtual {v3, v4, v5, v6}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v0

    .line 426
    :goto_1
    if-eqz v0, :cond_0

    .line 428
    :try_start_1
    const-string v3, "CREATE TABLE if not exists homepage (url TEXT);"

    invoke-virtual {v0, v3}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 429
    const-string v3, "DELETE FROM homepage;"

    invoke-virtual {v0, v3}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 430
    if-eqz p1, :cond_2

    .line 431
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "INSERT INTO homepage VALUES (\'"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\');"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 435
    :cond_2
    :goto_2
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    goto :goto_0

    .line 433
    :catch_0
    move-exception v3

    goto :goto_2

    .line 424
    :catch_1
    move-exception v3

    goto :goto_1
.end method

.method public setTimeout()V
    .locals 1

    .prologue
    .line 478
    const/16 v0, 0x1e

    invoke-virtual {p0, v0}, Lrexsee/core/application/RexseeApplication;->setTimeout(I)V

    .line 479
    return-void
.end method

.method public setTimeout(I)V
    .locals 5
    .param p1, "seconds"    # I

    .prologue
    .line 481
    const/16 v1, 0x78

    if-gt p1, v1, :cond_0

    const/4 v1, 0x5

    if-ge p1, v1, :cond_1

    .line 482
    :cond_0
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v2, "Invalid arguments. The timout should be between 5 seconds and 120 seconds."

    const/4 v3, 0x1

    invoke-static {v1, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 493
    :goto_0
    return-void

    .line 485
    :cond_1
    :try_start_0
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    const-string v2, "application.db"

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {v1, v2, v3, v4}, Landroid/content/Context;->openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 486
    .local v0, "db":Landroid/database/sqlite/SQLiteDatabase;
    const-string v1, "CREATE TABLE if not exists timeout (seconds int);"

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 487
    const-string v1, "DELETE FROM timeout;"

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 488
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "INSERT INTO timeout VALUES ("

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ");"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 489
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 490
    .end local v0    # "db":Landroid/database/sqlite/SQLiteDatabase;
    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method public uninstall()V
    .locals 4

    .prologue
    .line 272
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.DELETE"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "package:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 273
    .local v0, "delete":Landroid/content/Intent;
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 274
    return-void
.end method
